import axios from 'axios'
axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
// 创建axios实例
const service = axios.create({
    baseURL: process.env.VUE_APP_API_BASE_URL, // api的base_url
    timeout: process.env.VUE_APP_API_TIMEOUT // 请求超时时间
});

service.interceptors.response.use(res => {
    return res.data
})
export default service;
